function customizeGlImpact(transactionRecord, standardLines, customLines, book) {
    try {
        //生产成本                  AccountId：1345
        //5101.22 制造费用 : 生产实际总成本(差异)	AccountId：903
        for (var i = 0; i < standardLines.getCount(); i++) {
            var currLine = standardLines.getLine(i);
            var accountId = currLine.getAccountId();
            //冲销 生产成本 和 制造费用 : 生产实际总成本(差异)
            if (accountId === 903) {
                var amount = currLine.getDebitAmount();
                if (amount > 0) {
                    addCreditCustomLines(customLines, amount, 903, "冲销贷方 制造费用:生产实际总成本(差异)")
                    addDebitCustomLines(customLines, amount, 1345, "冲销借方 生产成本");
                }
            }
        }
        var woId = transactionRecord.getFieldValue('createdfrom');
        var woRec = nlapiLoadRecord('workorder', woId);
        var glImpact = woRec.getFieldValue('custbody_gl_impact_record');
        var amountArray = glImpact.match(/\d+(\.\d+)?/g);
        //nlapiLogExecution('DEBUG', 'amountArray', JSON.stringify(amountArray));
        var totalAmount = parseFloat(0);
        amountArray.forEach(function (element, index, arr) {
            var amount = parseFloat(element);
            //产生生产成本 credit贷方
            addCreditCustomLines(customLines, amount, 1345, "产生贷方 生产成本");
            totalAmount = totalAmount + amount;
        });
        if (totalAmount > 0) {
            //产生debit借方 制造费用 : 生产实际总成本(差异)
            addDebitCustomLines(customLines, totalAmount, 903, "产生借方 制造费用 : 生产实际总成本(差异)");
        }
    } catch (e) {
        nlapiLogExecution('DEBUG', 'e', JSON.stringify(e));
    }
}